-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update WiFiManager to 2.0.17 and add option to connect to strongest BSSID #349
Conversation
Hi, the first try seems good. After updating and restarting, my ESP32-S3 connected to my nearby router, which has the strongest signal (-43dBm). This was a new experience, as the Nuki Hub had previously always connected to the first available AP instead of the one with the best signal. I will continue watching and testing it. Can you maybe also add the authName fix for further testing, please? Thank you very much! PS: Also a second try to bring the AP temporarily closer to the ESP32 also worked. |
Yesterday evening, it was probably just luck. I have just made another attempt by placing the ESP32 next to an AP and turning the ESP32 on and off. After three tries, the ESP32 didn't connect to the AP, but instead connected to a more distant router or another AP (so far, there have been no authName errors). System Information:
|
You do seem to have it configured correctly so this will need some more debugging on my end. |
It seems as you mentioned that ESP's only connect to the first BSSID/AP they find and not necessarily the best one. An ESP with a LAN connection is unfortunately not possible in my place (too far away because of BLE). I hope you can find a solution when debugging. I would be happy to test other firmwares with my test ESP32-S3. btw: Does it also make sense to talk via Discord? The link under "About" seems to have expired. Otherwise I prefer Matrix (e.g. Element), where I have created a Nuki-Hub room: #nuki-hub:tchncs.de |
Hi, this is the link to our discord: |
65ba3b4
to
2d93af0
Compare
This one should work: esp32-s3-assets.zip In the first version best BSSID was only selected on the very first connection to the network and not on every connection after (including after restarts). This is now fixed. Tested with debugging enabled (off again in this binary) on my own ESP32-S3. With debugging on the BSSID selection process can be followed and in my testing worked perfectly. The currently selected BSSID can also be viewed on the info page in the web configurator now. |
Yes, indeed, your second version works great!! I placed the ESP32-S3 near three different APs, and the Nuki-Hub connected to them as expected because it provides the best signal. On the info page I can see the MAC |
@iranl could you share a version of this to test that is in par with 8.34 just released? Amazing work. Thanks a lot. |
Binaries of current master (8.34 + #343) + this PR: esp32-assets.zip |
@iranl my observations/questions:
|
|
Ok, I thought it constantly checked for the AP with the strongest signal, so it only does it on connection, and obviously when it needs to reconnect (reboots, etc.), correct? It doesn't search for strongest signal when already connected. |
Yes, WifiManager is only active during the connection phase, and then quits. It's a frontend to configure the ESPs Wifi stack, whatever else is handled within the stack. |
Add a solution for multi AP/Mesh environments where Nuki Hub connects to a random AP instead of the AP with the strongest signal and might be repeatedly kicked of the network by Mesh systems employing access point steering.
Fixes #348
Enable
Connect to AP with the best signal in an environment with multiple APs with the same SSID
inAdvanced MQTT and Network Configuration
to enable this new behaviour.Binaries for testing:
esp32dev-assets.zipesp32-s3-assets.zipesp32-c3-assets.zipesp32solo1-assets.zip@jolichter: Can you test if this solves your WiFi issues? Note that this binary does not include the authName fixes.